﻿using System.Collections;
using UnityEngine;

public class Loader : MonoBehaviour {
    //指定GameManager的Prefab
    public GameObject gameManager;

    public GameObject manager;

    void Awake () {
        //GameManager不存在的时候、生成GameManager
        if (GameManager.instance == null) {
            Instantiate (gameManager);
        }

        if (Manager.Instance == null) {
            Instantiate (manager);
        }
    }
}